package com.itheima.tlais_web_management.mapper;

import com.itheima.tlais_web_management.pojo.User;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Select;
import org.apache.ibatis.annotations.Update;

import java.util.List;

@Mapper
public interface UserMapper {

    @Select("select * from tlias.user")
    public List<User> list();

    @Update("UPDATE tlias.user SET password = #{password} WHERE id = #{id}")
    int updateById(User user);

}
